package com.logistics.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.logistics.modules.transportationManagement.entity.CargotypeEntity;
import lombok.Data;

/**
 * 
 * 
 * @author sys
 * @email HURRICANE@nb.com
 * @date 2022-05-06 16:47:20
 */
@Data
@TableName("freightcalculaterules")
@JsonIgnoreProperties(value = {"handler"})
public class FreightcalculaterulesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id 自增
	 */
	@TableId
	private Integer id;
	/**
	 * 运算规则的名字
	 */
	private String name;
	/**
	 * 货物类型id
	 */
	private Integer cargoTypeId;
	/**
	 * 货物单位
	 */
	private String cargoUnit;
	/**
	 * 价格
	 */
	private Double money;
	/**
	 * 删除状态（0，正常，1已删除）
	 */
	private Integer delFlag;
	/**
	 * 货物数量
	 */
	private Integer cargoNumber;
	/**
	 数据字典，货物单位
	 */
	@TableField(exist = false)
	private SystemcodetableEntity sysCargoUnit;
	/**
	 * 货物类型
	 */
	@TableField(exist = false)
	private CargotypeEntity cargoType;
	/**
	 * 起始地
	 */
	@TableField(value = "start_address")
	private String sysStartAddress;
	/**
	 * 目的地
	 */
	@TableField(value = "end_address")
	private String sysEndAddress;


}
